#!/bin/sh
#
# Creates AVDs suitable for testing.
#
# Assumes:
#   PATH is set to find the "android" tool

# AVD inforation
DIR=$(dirname "$0")
source ${DIR}/avd.inc

# Create an sdcard image that all the emulators can share.
mksdcard -l klaxon 16M ${SDCARD}

for api in ${APIS}; do
	android create avd --force -n "klaxon-${api}" -t "android-${api}" \
		--sdcard ${SDCARD}
done

